package com.bear.listen;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <简述>
 * <详细描述>
 *
 * @author LiuShanshan
 * @version $Id$
 */
@Component
@RabbitListener(queues = "TestDirectQueue")         // 监听队列的名称
public class DirectReceiver {
    @RabbitHandler
    public void process(String message){       // 根据里面的入参的类型来调用什么方法
        System.out.println("mq监听器1：" + message);
    }
}
